package com.lagou.domain;

import java.util.List;

/**
 * @Author wsl
 * @Date 2021/11/4 23:38
 * @Project_Name mybatis_quickstart
 */
public class T_article {//文章表

    private int id;
    private String title;
    private String content;

    //一对多：表示多方关系：集合：表示当前文章具备的评论列表
    private List<T_comment> t_commentList;

    public List<T_comment> getT_commentList() {
        return t_commentList;
    }

    public void setT_commentList(List<T_comment> t_commentList) {
        this.t_commentList = t_commentList;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "T_article{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", t_commentList=" + t_commentList +
                '}';
    }
}
